define([
    'http://localhost:81/js/require.js',
    'http://localhost:81/js/jquery.2.2.4.js'
], function (require, factory) {
    'use strict';

    function fn() {
        $(".goods_top").load("http://localhost:81/html/public.html .top_wrap");
        $(".goods_header").load(
            "http://localhost:81/html/public.html .logo_wrap"
        );
        $(".goods_nav").load(
            "http://localhost:81/html/public.html .nav_wrap",
            function () {
                (function () {
                    $(".nav_menu").css({
                        display: "none",
                    });

                    $(".nav_first_title").hover(
                        function () {
                            $(".nav_menu").css({
                                display: "block",
                            });
                        },
                        function () {
                            $(".nav_menu").css({
                                display: "none",
                            });
                        }
                    );

                    $(".nav_li").hover(
                        function () {
                            $(this)
                                .css({
                                    background: "black",
                                })
                                .find(".menu")
                                .css({
                                    display: "block",
                                });
                        },
                        function () {
                            $(this)
                                .css({
                                    background: "",
                                })
                                .find(".menu")
                                .css({
                                    display: "none",
                                });
                        }
                    );
                })();
                (function () {
                    $(".nav ul")
                        .children("li")
                        .not($(".nav_first_title"))
                        .hover(
                            function () {
                                $(this)
                                    .css({
                                        background: "#f03a58",
                                        color: "#fff",
                                    })
                                    .children("a")
                                    .css({
                                        color: "#fff",
                                    });
                            },
                            function () {
                                $(this)
                                    .css({
                                        background: "#fff",
                                        color: "#000",
                                    })
                                    .children("a")
                                    .css({
                                        color: "#000",
                                    });
                            }
                        );
                })();
            }
        );
        $(".goods_footer").load(
            "http://localhost:81/html/public.html .footer_wrap"
        );
        $(".goods__bottom").load(
            "http://localhost:81/html/public.html .bottom_wrap"
        );
    }
    return fn
})